<?=view("home.header")?>
<?=view('home.nav')?>
<div class="content-wrapper">
    <div class="container">
        <div class="row pad-botm">
            <div class="col-md-12">
                <h4 class="header-line">商务会员管理系统</h4>
            </div>
        </div>
        <div class="row">
            <div class="col-md-2 col-sm-2 col-xs-6">
                <div class="alert alert-info back-widget-set text-center">
                    <i class="fa fa-users fa-5x"></i>
                    <h3><a href="<?=url("index/memrecommend")?>">会员网络</a></h3>
                </div>
            </div>
            <div class="col-md-2 col-sm-2 col-xs-6">
                <div class="alert alert-info back-widget-set text-center">
                    <i class="fa fa-inbox fa-5x"></i>
                    <h3><a href="<?=url("index/dzbcz")?>">货币充值</a></h3>
                </div>
            </div>
            <div class="col-md-2 col-sm-2 col-xs-6">
                <div class="alert alert-info back-widget-set text-center">
                    <i class="fa fa-money fa-5x"></i>
                    <h3><a href="<?=url("index/countmoneylog")?>">奖金明细</a></h3>
                </div>
            </div>
            <div class="col-md-2 col-sm-2 col-xs-6">
                <div class="alert alert-info back-widget-set text-center">
                    <i class="fa fa-outdent fa-5x"></i>
                    <h3><a href="<?=url("index/withdraw")?>">账户提现</a></h3>
                </div>
            </div>
            <div class="col-md-2 col-sm-2 col-xs-6">
                <div class="alert alert-info back-widget-set text-center">
                    <i class="fa fa-chain fa-5x"></i>
                    <h3><a href="<?=url("index/dzbhz")?>">账户转账</a></h3>
                </div>
            </div>
            <div class="col-md-2 col-sm-2 col-xs-6">
                <div class="alert alert-info back-widget-set text-center">
                    <i class="fa fa-user fa-5x"></i>
                    <h3><a href="<?=url("index/memrecommend")?>">注册会员</a></h3>
                </div>
            </div>
        </div>            
        <div class="row">
            <div class="col-md-4 col-sm-4 col-xs-12">
                <div class="panel panel-info">
                        <div class="panel-heading">
                            <i class="fa fa-user fa-2x"></i>用户信息
                        </div>
                        <div class="panel-body text-center recent-users-sec">
                            <table class="table table-striped">
                                <tr>
                                    <td>姓名：</td>
                                    <td><?=$user->Mu_Name?></td>
                                </tr>
                                <tr>
                                    <td>手机：</td>
                                    <td><?=$user->Mu_Mobile?></td>
                                </tr>
                                <tr>
                                    <td>会员级别：</td>
                                    <td><?=$user->Mu_BuyProduct?></td>
                                </tr>
                                <tr>
                                    <td>奖金币：</td>
                                    <td><?=$user->jjcoin()?></td>
                                </tr>
                                <tr>
                                    <td>电子币：</td>
                                    <td><?=$user->dzcoin()?></td>
                                </tr>
                                <tr>
                                    <td>复消币：</td>
                                    <td><?=$user->fxcoin()?></td>
                                </tr>
                                <tr>
                                    <td>兑换币：</td>
                                    <td><?=$user->dhcoin()?></td>
                                </tr>
                                <tr>
                                    <td>是否是商务中心：</td>
                                    <td><?=$user->isAgent()?></td>
                                </tr>
                                <tr>
                                    <td><a class="btn btn-info" href="<?=url("index/userinfo")?>">修改资料</a></td>
                                    <td><a class="btn btn-warning" href="<?=url("index/modpwd")?>">修改密码</a></td>
                                </tr>
                            </table>
                        </div>
                </div>
            </div>
            <div class="col-md-8 col-sm-8 col-xs-12">
                <div class="panel panel-success">
                    <div class="panel-heading">
                           新闻中心
                    </div>
                    <div class="panel-body">
                        <div class="table-responsive">
                            <table class="table table-striped table-hover">
                                <tbody>
                                    <?php 
                                    if ($news && count($news) > 0):
                                        foreach ($news as $new):
                                    ?>
                                    <tr>
                                        <td>
                                            <a href="<?=url("index/newdetail")?>/<?=$new->MNID?>"><?=$new->Mn_Title?></a>
                                        </td>
                                        <td style="width:30%;"><?=$new->Mn_CreateTime?></td>
                                    </tr>
                                    </a>
                                    <?php 
                                        endforeach;
                                    endif; 
                                    ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
             </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        给公司留言
                    </div>
                    <div class="panel-body">
                        <form role="form" method="post" action="<?=url("index/sendbox")?>">
                            {{csrf_field()}}
                            <div class="form-group">
                                <label>留言标题</label>
                                <input class="form-control" type="text" name="Mn_Title" required="required" maxlength="50" />
                            </div>
                            <div class="form-group">
                                <label>留言内容</label>
                                <textarea class="form-control" name="Mn_SendContent" maxlength="200" style="min-height: 150px; resize: none;" width="100%" required="required"></textarea>
                            </div>  
                            <button type="submit" class="btn btn-success">提 交 </button>
                            <button type="reset" class="btn btn-primary">取 消</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?=view("home.footer")?>